home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
lisp
/
elk-2_0.lha
/
elk-2.0
/
scripts
/
build
next >
Wrap
Text File
|
1992-11-02
|
1KB
|
46 lines
. ../config/system
. ../config/site
if [ _$use_ld_xflag = _yes ]; then xflag=-x; fi
srcdir=`pwd | sed -e 's/scripts$/src/'`
sed_cmd="'s%@obj_ldflags@%$obj_ldflags%' -e 's%@xflag@%$xflag%'"
echo Building Makefile.local...
cat <<EOT >Makefile.local
# This Makefile was produced by running ./build in this directory.
SHELL=/bin/sh
FILES= linkscheme\\
linkext.ld\\
linkext.rld\\
linkext.shl
all: $(FILES)
linkscheme: linkscheme.sh ../config/system ../config/site
sed -e 's%@ofiles@%$srcdir/*.o%' -e 's%@cc@%$cc%' \\
-e 's%@cflags@%$cflags%' -e 's%@ldflags@%$ldflags%' \\
-e 's%@system@%$system%' \\
linkscheme.sh > \$@
chmod +x \$@
linkext.ld: linkext.ld.sh ../config/system ../config/site
sed -e $sed_cmd linkext.ld.sh > \$@
chmod +x \$@
linkext.rld: linkext.rld.sh ../config/system ../config/site
sed -e $sed_cmd linkext.rld.sh > \$@
chmod +x \$@
linkext.shl: linkext.shl.sh ../config/system ../config/site
sed -e $sed_cmd linkext.shl.sh > \$@
chmod +x \$@
distclean:
rm -f $(FILES) Makefile.local
EOT